package com.luych.toolbox.common.feign.view.data.service;

import com.luych.toolbox.common.enums.DataCompareHistoryStatus;
import com.luych.toolbox.common.feign.FeignView;
import com.luych.toolbox.common.feign.view.base.service.UserView;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("数据对比历史")
public class DataCompareHistoryView extends FeignView {

    @ApiModelProperty("数据源1")
    private DataSourceView dataSourceOne;
    @ApiModelProperty("数据源2")
    private DataSourceView dataSourceTwo;
    @ApiModelProperty("数据对比计划")
    private DataComparePlanView dataComparePlan;
    @ApiModelProperty("描述")
    private String name;
    @ApiModelProperty("状态")
    private DataCompareHistoryStatus status;
    @ApiModelProperty("异常信息")
    private String errorMessage;
    @ApiModelProperty("异常堆栈")
    private String errorTrace;
    @ApiModelProperty("责任人")
    private UserView owner;
    @ApiModelProperty("开始时间")
    private Date startDate;
    @ApiModelProperty("结束时间")
    private Date completeDate;
    @ApiModelProperty("字段1到字段2SQL")
    private String oneToTwo;
    @ApiModelProperty("字段2到字段1SQL")
    private String twoToOne;
    @ApiModelProperty("字段1到字段2SQL")
    private String oneToTwoLower;
    @ApiModelProperty("字段2到字段1SQL")
    private String twoToOneLower;
    @ApiModelProperty("字段1到字段2SQL")
    private String oneToTwoUpper;
    @ApiModelProperty("字段2到字段1SQL")
    private String twoToOneUpper;

    public DataSourceView getDataSourceOne() {
        return dataSourceOne;
    }

    public String getDataSourceOneId() {
        return dataSourceOne == null ? null : dataSourceOne.getId();
    }

    public void setDataSourceOne(DataSourceView dataSourceOne) {
        this.dataSourceOne = dataSourceOne;
    }

    public DataSourceView getDataSourceTwo() {
        return dataSourceTwo;
    }

    public String getDataSourceTwoId() {
        return dataSourceTwo == null ? null : dataSourceTwo.getId();
    }

    public void setDataSourceTwo(DataSourceView dataSourceTwo) {
        this.dataSourceTwo = dataSourceTwo;
    }

    public DataComparePlanView getDataComparePlan() {
        return dataComparePlan;
    }

    public String getDataComparePlanId() {
        return dataComparePlan == null ? null : dataComparePlan.getId();
    }

    public void setDataComparePlan(DataComparePlanView dataComparePlan) {
        this.dataComparePlan = dataComparePlan;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DataCompareHistoryStatus getStatus() {
        return status;
    }

    public void setStatus(DataCompareHistoryStatus status) {
        this.status = status;
    }

    public String getStatusValue() {
        return status == null ? null : status.getValue();
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getErrorTrace() {
        return errorTrace;
    }

    public void setErrorTrace(String errorTrace) {
        this.errorTrace = errorTrace;
    }

    public UserView getOwner() {
        return owner;
    }

    public void setOwner(UserView owner) {
        this.owner = owner;
    }

    public String getOwnerId() {
        return owner == null ? null : owner.getId();
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }

    public String getOneToTwo() {
        return oneToTwo;
    }

    public void setOneToTwo(String oneToTwo) {
        this.oneToTwo = oneToTwo;
    }

    public String getTwoToOne() {
        return twoToOne;
    }

    public void setTwoToOne(String twoToOne) {
        this.twoToOne = twoToOne;
    }

    public String getOneToTwoLower() {
        return oneToTwoLower;
    }

    public void setOneToTwoLower(String oneToTwoLower) {
        this.oneToTwoLower = oneToTwoLower;
    }

    public String getTwoToOneLower() {
        return twoToOneLower;
    }

    public void setTwoToOneLower(String twoToOneLower) {
        this.twoToOneLower = twoToOneLower;
    }

    public String getOneToTwoUpper() {
        return oneToTwoUpper;
    }

    public void setOneToTwoUpper(String oneToTwoUpper) {
        this.oneToTwoUpper = oneToTwoUpper;
    }

    public String getTwoToOneUpper() {
        return twoToOneUpper;
    }

    public void setTwoToOneUpper(String twoToOneUpper) {
        this.twoToOneUpper = twoToOneUpper;
    }
}
